import {Authority} from '../request'

const {get, post} = Authority

// 获取客户列表
export const getCustomerList = params => get('/erp/custom-info/v1/queryList', {params})
// 获取客户选择列表
export const getCustomerSelectList = params => get('/erp/custom-info/v1/querySelectList', {params})
// 新增客户信息
export const addCustomer = params => post('/erp/custom-info/v1/add', params)
// 编辑客户信息
export const updateCustomer = params => post('/erp/custom-info/v1/update', params)


// 演示产品类型新增
export const addProductType = params => post('/erp/tag-menu/v1/add', params)
// 演示产品类型删除
export const delProductType = params => post('/erp/tag-menu/v1/delete', params)
// 演示产品树形列表
export const getProductList = params => get('/erp/tag-menu/v1/queryTagTree', {params})
// 演示产品新增
export const addProduct = params => post('/erp/tag/v1/add', params)
// 演示产品删除
export const delProduct = params => post('/erp/tag/v1/delete', params)
// 获取演示产品选择列表
export const getProductSelectList = params => get('/erp/tag/v1/querySelectList', {params})


//新增拜访
export const addVisit = params => post('/erp/visit-record/v1/add', params)

//拜访状态调整
export const updateVisitStatus = params => post('/erp/visit-record/v1/updateVisitStatus', params)

// 获取拜访记录列表
export const getVisitList = params => get('/erp/visit-record/v1/queryList', {params})
